<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	request.setAttribute("path", request.getContextPath());
%>
<div id = "new-comment">
	<div id = "new-comment-title">
		<span>最近评论</span>
	</div>
	<ul>
	<c:forEach items="${commentList }" var="comment">
		<li>
			<div class="new-comment-info">
			<a href="user.html?id=${comment.usr.id }">${comment.usr.usr }</a>
			于
			<fmt:formatDate value="${comment.time }" pattern="yyyy-MM-dd HH:mm:ss"/>
			在
			<a href="article.html?id=${comment.articleDO.id }">${comment.articleDO.title }</a>
			里说
			</div>
			<div class="new-comment-content">
				${comment.content }
			</div>
		</li>
	</c:forEach>
	</ul>
</div>
